package com.itheima.d6_thread_communication.demo;

import java.util.ArrayList;

 class Demo {
    public static void main(String[] args) {
        ArrayList<String> plate = new ArrayList<>();
        new Producer("【师傅】张三",plate).start();
        new Producer("【师傅】李四",plate).start();
        new Producer("【师傅】王五",plate).start();
//        new Consumer("【吃货】八戒",plate).start();
//        new Consumer("【吃货】悟空",plate).start();
        new Consumer("【吃货】沙僧",plate).start();
    }
}
